package com.ruoyi.report.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.io.support.PropertySourceFactory;
import org.springframework.stereotype.Component;

/**
 * 读取代码生成相关配置
 * 
 * @author ruoyi
 */
@Component
@ConfigurationProperties(prefix = "report")
@PropertySource(value = {"classpath:reportbase.yml"}, factory = PropertySourceFactory.class)
public class ReportConfig
{
    private static String reportPath;

    private static String reportTpl;


    public static String getReportPath() {
        return reportPath;
    }
    @Value("${reportPath}")
    public  void setReportPath(String reportPath) {
        ReportConfig.reportPath = reportPath;
    }

    public static String getReportTpl() {
        return reportTpl;
    }
    @Value("${reportTpl}")
    public  void setReportTpl(String reportTpl) {
        ReportConfig.reportTpl = reportTpl;
    }
}
